package com.yk.anima.api;

import com.yk.anima.pojo.Cat;
import com.yk.anima.pojo.ProductsCat;
import com.yk.anima.response.QueryResponseResult;
import com.yk.anima.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import java.util.List;

/**
 * @author xiaokai
 * @create 2021-05-13 08:51:44
 * @desc...
 */
@Api(value = "管理猫数据",description = "对猫进行管理")
public interface ProductsCatApi {

    @ApiOperation("查询所有猫")
    public List<ProductsCat> findAll();

    @ApiOperation("根据Id查询猫")
    public ProductsCat findById(int id);

    @ApiOperation("添加猫")
    public ResponseResult save(ProductsCat productsCat);

    @ApiOperation("修改猫")
    public ResponseResult update(@ApiParam("当前宠物ID") int id,@ApiParam("当前用户修改后的数据") ProductsCat productsCat);

    @ApiOperation("删除猫")
    public ResponseResult delete(int id);

    @ApiOperation("分页查询")
    public QueryResponseResult findByPage(int page,int size,String name);




}
